﻿
@model MvcPaging.IPagedList<TuanAnhPersonalWeb.Models.ImageModel>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Index</h2>
@{TuanAnhPersonalWeb.Models.ImageModel model = new TuanAnhPersonalWeb.Models.ImageModel();}
 <div id="divSearch">
        @{Html.RenderPartial("_SearchControl", model);}
    </div>
    <div id="divGrid">
            @{Html.RenderPartial("_ListControl", this.Model);}
    </div>

    <script type="text/javascript">

        function beginPaging(args) {
            // Animate
            $('#divGrid').fadeOut('slow');
        }

        function successPaging() {
            // Animate
            $('#divGrid').fadeIn('slow');

        }

        function failurePaging() {
            alert("Could not retrieve contacts.");
        }

    </script>

